import test.RubberDuck;
import test.fly.FlyRocket;

/**
 * @Author: Wyndem
 * @Description: 主方法
 * @Date: Created in  2019-01-20 18:09
 * @Modified By:
 */
public class Main {
    public static void main(String[] args) {
        RubberDuck rubberDuck = new RubberDuck();
        rubberDuck.fly();
        rubberDuck.setFlyPattern(new FlyRocket());
        rubberDuck.fly();

    }
}
